package com.example.houduan.controller;

import com.example.houduan.service.AllService;
import com.example.houduan.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AllController {
    @Autowired
    private AllService allService;
    @GetMapping("/getNovelList")
    public Result getNovelPageList(String name) {
        return Result.success(allService.getAllList(name));
    }

}
